package model

import (
	"gorm.io/gorm"
	"time"
)

type CommentLike struct {
	Id        int            `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	CommentId int            `gorm:"column:comment_id;type:bigint(20) UNSIGNED;comment:评论id;not null;" json:"comment_id"`                      // 评论id
	Deleted   gorm.DeletedAt `gorm:"column:deleted;type:datetime(3);comment:删除时间;default:NULL;" json:"deleted"`                                // 删除时间
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);comment:创建时间;not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"` // 创建时间
}

func (CommentLike) TableName() string {
	return "comment_like"
}
